Class: Hamlit::Filters::Ruby

Inherits:
Base show all
Defined in:
lib/hamlit/filters/ruby.rb

Instance Method Summary collapse

Methods inherited from Base

#initialize

Constructor Details

This class inherits a constructor from Hamlit::Filters::Base

Instance Method Details

#compile(node) ⇒ Object


5
6
7
# File 'lib/hamlit/filters/ruby.rb', line 5

def compile(node)
  [:code, node.value[:text]]
end