Class: Quby::Compiler::Entities::Definition
- Inherits:
-
Object
- Object
- Quby::Compiler::Entities::Definition
- Extended by:
- ActiveModel::Naming
- Includes:
- ActiveModel::Validations
- Defined in:
- lib/quby/compiler/entities/definition.rb
Instance Attribute Summary collapse
-
#key ⇒ Object
Returns the value of attribute key.
-
#lookup_tables ⇒ Object
Returns the value of attribute lookup_tables.
-
#path ⇒ Object
Returns the value of attribute path.
-
#sourcecode ⇒ Object
Returns the value of attribute sourcecode.
-
#timestamp ⇒ Object
Returns the value of attribute timestamp.
Instance Method Summary collapse
-
#initialize(key:, path:, sourcecode: "", timestamp: nil, lookup_tables: {}) ⇒ Definition
constructor
A new instance of Definition.
Constructor Details
#initialize(key:, path:, sourcecode: "", timestamp: nil, lookup_tables: {}) ⇒ Definition
Returns a new instance of Definition.
15 16 17 18 19 20 21 |
# File 'lib/quby/compiler/entities/definition.rb', line 15 def initialize(key:, path:, sourcecode: "", timestamp: nil, lookup_tables: {}) @path = path @key = key @sourcecode = sourcecode @timestamp = @lookup_tables = lookup_tables end |
Instance Attribute Details
#key ⇒ Object
Returns the value of attribute key.
13 14 15 |
# File 'lib/quby/compiler/entities/definition.rb', line 13 def key @key end |
#lookup_tables ⇒ Object
Returns the value of attribute lookup_tables.
13 14 15 |
# File 'lib/quby/compiler/entities/definition.rb', line 13 def lookup_tables @lookup_tables end |
#path ⇒ Object
Returns the value of attribute path.
13 14 15 |
# File 'lib/quby/compiler/entities/definition.rb', line 13 def path @path end |
#sourcecode ⇒ Object
Returns the value of attribute sourcecode.
13 14 15 |
# File 'lib/quby/compiler/entities/definition.rb', line 13 def sourcecode @sourcecode end |
#timestamp ⇒ Object
Returns the value of attribute timestamp.
13 14 15 |
# File 'lib/quby/compiler/entities/definition.rb', line 13 def @timestamp end |