Class: Quby::Compiler::Entities::Definition

Inherits:
Object
  • Object
show all
Extended by:
ActiveModel::Naming
Includes:
ActiveModel::Validations
Defined in:
lib/quby/compiler/entities/definition.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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 = timestamp
  @lookup_tables = lookup_tables
end

Instance Attribute Details

#keyObject

Returns the value of attribute key.



13
14
15
# File 'lib/quby/compiler/entities/definition.rb', line 13

def key
  @key
end

#lookup_tablesObject

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

#pathObject

Returns the value of attribute path.



13
14
15
# File 'lib/quby/compiler/entities/definition.rb', line 13

def path
  @path
end

#sourcecodeObject

Returns the value of attribute sourcecode.



13
14
15
# File 'lib/quby/compiler/entities/definition.rb', line 13

def sourcecode
  @sourcecode
end

#timestampObject

Returns the value of attribute timestamp.



13
14
15
# File 'lib/quby/compiler/entities/definition.rb', line 13

def timestamp
  @timestamp
end