Class: Pione::PNML::Feature
- Inherits:
-
PioneModel
- Object
- PioneModel
- Pione::PNML::Feature
- Defined in:
- lib/pione/pnml/pione-model.rb
Overview
Feature represents a feature declaration in PIONE.
Instance Attribute Summary collapse
-
#expr ⇒ Object
readonly
Returns the value of attribute expr.
Instance Method Summary collapse
- #as_declaration(option = {}) ⇒ Object
-
#initialize(expr) ⇒ Feature
constructor
A new instance of Feature.
Methods inherited from PioneModel
Constructor Details
#initialize(expr) ⇒ Feature
Returns a new instance of Feature.
669 670 671 |
# File 'lib/pione/pnml/pione-model.rb', line 669 def initialize(expr) @expr = expr end |
Instance Attribute Details
#expr ⇒ Object (readonly)
Returns the value of attribute expr.
667 668 669 |
# File 'lib/pione/pnml/pione-model.rb', line 667 def expr @expr end |
Instance Method Details
#as_declaration(option = {}) ⇒ Object
673 674 675 |
# File 'lib/pione/pnml/pione-model.rb', line 673 def as_declaration(option={}) indent("feature " + @expr, option) end |