Module: RedParse::ListInNode
- Defined in:
- lib/redparse/node.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.[](*args) ⇒ Object
360 |
# File 'lib/redparse/node.rb', line 360 def self.[](*args) args.extend ListInNode end |
Instance Method Details
#==(other) ⇒ Object
372 373 374 |
# File 'lib/redparse/node.rb', line 372 def ==(other) ListInNode===other and super end |
#[]=(*args) ⇒ Object
361 362 363 364 365 366 367 368 369 370 371 |
# File 'lib/redparse/node.rb', line 361 def []=(*args) val=args.pop #inline symbols as callnodes case val when Symbol val=CallNode[nil,val.to_s] when Integer,Float val=LiteralNode[val] end super( *args<<val ) end |