Class: Pione::PNML::Feature

Inherits:
PioneModel show all
Defined in:
lib/pione/pnml/pione-model.rb

Overview

Feature represents a feature declaration in PIONE.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from PioneModel

#indent

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

#exprObject (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