Class: Delorean::Import

Inherits:
SNode
  • Object
show all
Defined in:
lib/delorean/nodes.rb

Instance Method Summary collapse

Instance Method Details

#check(context) ⇒ Object



55
56
57
# File 'lib/delorean/nodes.rb', line 55

def check(context)
  context.parse_import(n.text_value)
end

#rewrite(context) ⇒ Object



59
60
61
62
# File 'lib/delorean/nodes.rb', line 59

def rewrite(context)
  context.gen_import(n.text_value)
  ""
end