Module: CutePrint::RubyParser::WrapsSexp Private

Included in:
Block, MethodCall, ParsedCode
Defined in:
lib/cute_print/ruby_parser/wraps_sexp.rb

This module is part of a private API. You should avoid using this module if possible, as it may be removed or be changed in the future.

Instance Method Summary collapse

Instance Method Details

#initialize(sexp) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



9
10
11
# File 'lib/cute_print/ruby_parser/wraps_sexp.rb', line 9

def initialize(sexp)
  @sexp = sexp
end

#to_rubyObject

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



13
14
15
# File 'lib/cute_print/ruby_parser/wraps_sexp.rb', line 13

def to_ruby
  RubyGenerator.to_ruby(@sexp)
end