Class: Context

Inherits:
Object
  • Object
show all
Defined in:
lib/raka/token.rb

Overview

Context to preserve during the token chaining

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(ext, scopes = []) ⇒ Context

Returns a new instance of Context.



15
16
17
18
# File 'lib/raka/token.rb', line 15

def initialize(ext, scopes = [])
  @ext = ext
  @scopes = scopes
end

Instance Attribute Details

#extObject (readonly)

Returns the value of attribute ext.



12
13
14
# File 'lib/raka/token.rb', line 12

def ext
  @ext
end

#scopesObject (readonly)

Returns the value of attribute scopes.



13
14
15
# File 'lib/raka/token.rb', line 13

def scopes
  @scopes
end