Class: RBNF::Unary
Overview
Unary AST node
Constant Summary
Constants included from RBNF
Instance Attribute Summary collapse
-
#a ⇒ Object
readonly
Returns the value of attribute a.
Instance Method Summary collapse
-
#initialize(a) ⇒ Unary
constructor
A new instance of Unary.
Methods included from RBNF
#=~, [], #alt, #cat, #comps, def, define, dememoize, #except, #group, method_missing, #opt, #rep, #rep_n
Constructor Details
#initialize(a) ⇒ Unary
Returns a new instance of Unary.
7 8 9 |
# File 'lib/rbnf/nodes.rb', line 7 def initialize(a) @a,@memo=a,{} end |
Instance Attribute Details
#a ⇒ Object (readonly)
Returns the value of attribute a.
6 7 8 |
# File 'lib/rbnf/nodes.rb', line 6 def a @a end |