Class: Context
- Inherits:
-
Object
- Object
- Context
- Defined in:
- lib/raka/token.rb
Overview
Context to preserve during the token chaining
Instance Attribute Summary collapse
-
#ext ⇒ Object
readonly
Returns the value of attribute ext.
-
#scopes ⇒ Object
readonly
Returns the value of attribute scopes.
Instance Method Summary collapse
-
#initialize(ext, scopes = []) ⇒ Context
constructor
A new instance of Context.
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
#ext ⇒ Object (readonly)
Returns the value of attribute ext.
12 13 14 |
# File 'lib/raka/token.rb', line 12 def ext @ext end |
#scopes ⇒ Object (readonly)
Returns the value of attribute scopes.
13 14 15 |
# File 'lib/raka/token.rb', line 13 def scopes @scopes end |