Module: ToFactory::Parsing::RubyParsingHelpers

Included in:
NullRepresentation, Syntax
Defined in:
lib/to_factory/parsing/ruby_parsing_helpers.rb

Instance Method Summary collapse

Instance Method Details

#ruby2rubyObject



8
9
10
# File 'lib/to_factory/parsing/ruby_parsing_helpers.rb', line 8

def ruby2ruby
  @ruby2ruby ||= Ruby2Ruby.new
end

#ruby_parserObject



12
13
14
# File 'lib/to_factory/parsing/ruby_parsing_helpers.rb', line 12

def ruby_parser
  @ruby_parseer ||= RubyParser.new
end

#to_ruby(sexp) ⇒ Object



4
5
6
# File 'lib/to_factory/parsing/ruby_parsing_helpers.rb', line 4

def to_ruby(sexp)
  ruby2ruby.process sexp.deep_clone
end