Class: Pione::Lang::SimpleFeature

Inherits:
FeaturePiece show all
Defined in:
lib/pione/lang/feature-expr.rb

Overview

SimpleFeature is a feature that consists prefix and name.

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from FeaturePiece

feature_type

Methods inherited from Piece

#eval, piece_type_name

Methods included from Util::Positionable

#line_and_column, #pos, #set_source_position

Class Method Details

.prefix(val = nil) ⇒ Object

Return the operator symbol.



65
66
67
# File 'lib/pione/lang/feature-expr.rb', line 65

def prefix(val = nil)
  val ? @prefix = val : @prefix
end

Instance Method Details

#textizeObject



72
73
74
# File 'lib/pione/lang/feature-expr.rb', line 72

def textize
  "%s%s" % [prefix, name]
end