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