File: transformer/object-into-document/path.rb

Overview
Module Structure
Code

Overview

Module Structure

  module: <Toplevel Module>
  module: TmDoc#8
  module: Transformer
  module: ObjectIntoDocument
  module: Path#10
has properties
function: transform / 1 #14

Code

   1  # $Id: path.rb,v 1.3 2011/11/23 15:55:30 machan Exp $
   2 
   3  require 'tmdoc/tmstd'
   4  require 'tmdoc/model/object'
   5  require 'tmdoc/model/document'
   6 
   7 
   8  module TmDoc
   9 
  10  module Transformer::ObjectIntoDocument::Path
  11 
  12  module_function
  13 
  14      def transform(mo_path)
  15          ASSERT.kind_of mo_path, MOL::Path
  16 
  17          MD::Path.new mo_path.to_a
  18      end
  19  end
  20 
  21  end