Class: TypedRb::AstParser::RewrittenWrapper

Inherits:
Object
  • Object
show all
Defined in:
lib/typed/runtime/ast_parser.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(parsed) ⇒ RewrittenWrapper

Returns a new instance of RewrittenWrapper.



36
37
38
# File 'lib/typed/runtime/ast_parser.rb', line 36

def initialize(parsed)
  @rewritten = parsed
end

Instance Attribute Details

#rewrittenObject (readonly)

Returns the value of attribute rewritten.



35
36
37
# File 'lib/typed/runtime/ast_parser.rb', line 35

def rewritten
  @rewritten
end

Instance Method Details

#to_sexpObject



44
45
46
# File 'lib/typed/runtime/ast_parser.rb', line 44

def to_sexp
  "REWRITTEN: #{@rewritten}"
end

#typeObject



40
41
42
# File 'lib/typed/runtime/ast_parser.rb', line 40

def type
  :rewritten
end