Class: Pione::Lang::SimplePiece

Inherits:
Piece
  • Object
show all
Defined in:
lib/pione/lang/piece.rb

Overview

SimplePiece is a piece of sequence that has single value elements.

Direct Known Subclasses

PioneBoolean, PioneFloat, PioneInteger, PioneString

Instance Method Summary collapse

Methods inherited from Piece

#eval, piece_type_name

Methods included from Util::Positionable

#line_and_column, #pos, #set_source_position

Instance Method Details

#inspectObject



37
38
39
# File 'lib/pione/lang/piece.rb', line 37

def inspect
  "#%s{value=%s}" % [piece_type_name, value.to_s]
end

#textizeObject



33
34
35
# File 'lib/pione/lang/piece.rb', line 33

def textize
  "#%s{value=%s}" % [piece_type_name, value.textize]
end