Class: Musa::GenerativeGrammar::OptionElement

Inherits:
Object
  • Object
show all
Defined in:
lib/musa-dsl/generative/generative-grammar.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(content, attributes = nil) ⇒ OptionElement

Returns a new instance of OptionElement.



22
23
24
25
# File 'lib/musa-dsl/generative/generative-grammar.rb', line 22

def initialize(content, attributes = nil)
  @content = content
  @attributes = attributes || {}
end

Instance Attribute Details

#attributesObject (readonly)

Returns the value of attribute attributes.



20
21
22
# File 'lib/musa-dsl/generative/generative-grammar.rb', line 20

def attributes
  @attributes
end

#contentObject (readonly)

Returns the value of attribute content.



20
21
22
# File 'lib/musa-dsl/generative/generative-grammar.rb', line 20

def content
  @content
end