Class: Swift::Boiler::Token
- Inherits:
-
Object
- Object
- Swift::Boiler::Token
- Defined in:
- lib/swift/boiler/token.rb
Constant Summary collapse
- TYPE =
[ OPTION = :option_type, PROPERTY = :property_type, TEMPLATE_NAME = :template_name_type, TEMPLATE_PATH = :template_path_type, CLASS_NAME = :class_name_type ]
Instance Attribute Summary collapse
-
#content ⇒ Object
Returns the value of attribute content.
-
#type ⇒ Object
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(type, content) ⇒ Token
constructor
A new instance of Token.
Constructor Details
#initialize(type, content) ⇒ Token
Returns a new instance of Token.
8 9 10 11 |
# File 'lib/swift/boiler/token.rb', line 8 def initialize (type, content) @type = type @content = content end |
Instance Attribute Details
#content ⇒ Object
Returns the value of attribute content.
4 5 6 |
# File 'lib/swift/boiler/token.rb', line 4 def content @content end |
#type ⇒ Object
Returns the value of attribute type.
4 5 6 |
# File 'lib/swift/boiler/token.rb', line 4 def type @type end |