Class: Pione::Lang::SpecialFeature
Overview
SpecialFeature is a class for empty feature and boundless feature.
Class Method Summary
collapse
Instance Method Summary
collapse
feature_type
Methods inherited from Piece
#eval, piece_type_name
#line_and_column, #pos, #set_source_position
Class Method Details
.symbol(sym = nil) ⇒ Object
25
26
27
|
# File 'lib/pione/lang/feature-expr.rb', line 25
def symbol(sym=nil)
sym ? @symbol = sym : sym
end
|
Instance Method Details
#==(other) ⇒ Object
Also known as:
eql?
37
38
39
|
# File 'lib/pione/lang/feature-expr.rb', line 37
def ==(other)
other.kind_of?(self.class) and symbol == other.symbol
end
|
#textize ⇒ Object
33
34
35
|
# File 'lib/pione/lang/feature-expr.rb', line 33
def textize
symbol
end
|