Class: Delorean::Import

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

Instance Method Summary collapse

Instance Method Details

#check(context) ⇒ Object



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

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

#rewrite(context) ⇒ Object



63
64
65
66
# File 'lib/delorean/nodes.rb', line 63

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