Class: RgGen::RAL::Item

Inherits:
OutputBase::Item show all
Defined in:
lib/rggen/core_components/ral/item.rb

Instance Attribute Summary collapse

Attributes inherited from Base::Item

#owner

Instance Method Summary collapse

Methods inherited from OutputBase::Item

#build, #generate_code, #generate_post_code, #generate_pre_code, inherited, #write_file

Methods included from OutputBase::TemplateUtility

included, #process_template

Methods inherited from Base::Item

#available?, available?, define_helpers, inherit_class_instance_variable

Methods included from Forwardable

#def_class_delegator, #def_class_delegators

Constructor Details

#initialize(owner) ⇒ Item



6
7
8
9
10
11
# File 'lib/rggen/core_components/ral/item.rb', line 6

def initialize(owner)
  super(owner)
  @identifiers            = []
  @variable_declarations  = Hash.new { |h, d| h[d]  = [] }
  @parameter_declarations = Hash.new { |h, d| h[d]  = [] }
end

Instance Attribute Details

#identifiersObject (readonly)

Returns the value of attribute identifiers.



13
14
15
# File 'lib/rggen/core_components/ral/item.rb', line 13

def identifiers
  @identifiers
end

Instance Method Details

#parameter_declarations(domain = nil) ⇒ Object



35
36
37
38
# File 'lib/rggen/core_components/ral/item.rb', line 35

def parameter_declarations(domain = nil)
  return @parameter_declarations if domain.nil?
  @parameter_declarations[domain]
end

#variable_declarations(domain = nil) ⇒ Object



30
31
32
33
# File 'lib/rggen/core_components/ral/item.rb', line 30

def variable_declarations(domain = nil)
  return @variable_declarations if domain.nil?
  @variable_declarations[domain]
end