Class: Musa::GenerativeGrammar::OptionElement
- Inherits:
-
Object
- Object
- Musa::GenerativeGrammar::OptionElement
- Defined in:
- lib/musa-dsl/generative/generative-grammar.rb
Instance Attribute Summary collapse
-
#attributes ⇒ Object
readonly
Returns the value of attribute attributes.
-
#content ⇒ Object
readonly
Returns the value of attribute content.
Instance Method Summary collapse
-
#initialize(content, attributes = nil) ⇒ OptionElement
constructor
A new instance of OptionElement.
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
#attributes ⇒ Object (readonly)
Returns the value of attribute attributes.
20 21 22 |
# File 'lib/musa-dsl/generative/generative-grammar.rb', line 20 def attributes @attributes end |
#content ⇒ Object (readonly)
Returns the value of attribute content.
20 21 22 |
# File 'lib/musa-dsl/generative/generative-grammar.rb', line 20 def content @content end |