class Interscript::Node::Item::CaptureRef
1
Attributes
id[RW]
Public Class Methods
new(id)
click to toggle source
# File lib/interscript/node/item/capture.rb, line 39 def initialize(id) @id = id end
Public Instance Methods
==(other)
click to toggle source
Calls superclass method
Interscript::Node::Item#==
# File lib/interscript/node/item/capture.rb, line 54 def ==(other) super && self.id == other.id end
first_string()
click to toggle source
# File lib/interscript/node/item/capture.rb, line 43 def first_string self end
Also aliased as: nth_string
inspect()
click to toggle source
# File lib/interscript/node/item/capture.rb, line 58 def inspect "ref(#{@id.inspect})" end
to_hash()
click to toggle source
# File lib/interscript/node/item/capture.rb, line 49 def to_hash { :class => self.class.to_s, :id => self.id } end
to_html(_)
click to toggle source
# File lib/interscript/visualize/nodes.rb, line 50 def to_html(_) "<nobr>capture reference (</nobr>" + id.to_s + ")" end