Class: MiniHTML::AST::Executable
- Defined in:
- lib/minihtml/ast/executable.rb
Instance Attribute Summary collapse
-
#source ⇒ Object
Returns the value of attribute source.
Attributes inherited from Base
#original_token, #position_end, #position_start
Instance Method Summary collapse
-
#initialize(token) ⇒ Executable
constructor
A new instance of Executable.
Constructor Details
#initialize(token) ⇒ Executable
Returns a new instance of Executable.
8 9 10 11 |
# File 'lib/minihtml/ast/executable.rb', line 8 def initialize(token) super @source = token[:literal] end |
Instance Attribute Details
#source ⇒ Object
Returns the value of attribute source.
6 7 8 |
# File 'lib/minihtml/ast/executable.rb', line 6 def source @source end |