Class: Swift::Boiler::Token

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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

#contentObject

Returns the value of attribute content.



4
5
6
# File 'lib/swift/boiler/token.rb', line 4

def content
  @content
end

#typeObject

Returns the value of attribute type.



4
5
6
# File 'lib/swift/boiler/token.rb', line 4

def type
  @type
end