Class: MiniHTML::AST::Executable

Inherits:
Base
  • Object
show all
Defined in:
lib/minihtml/ast/executable.rb

Instance Attribute Summary collapse

Attributes inherited from Base

#original_token, #position_end, #position_start

Instance Method Summary collapse

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

#sourceObject

Returns the value of attribute source.



6
7
8
# File 'lib/minihtml/ast/executable.rb', line 6

def source
  @source
end