class Emfrp::Link
Public Class Methods
new(syntax, name=nil)
click to toggle source
# File lib/emfrp/syntax.rb, line 42 def initialize(syntax, name=nil) @link = syntax @name = name end
Public Instance Methods
eql?(other)
click to toggle source
# File lib/emfrp/syntax.rb, line 55 def eql?(other) self.hash == other.hash end
get()
click to toggle source
# File lib/emfrp/syntax.rb, line 47 def get @link end
hash()
click to toggle source
# File lib/emfrp/syntax.rb, line 51 def hash @link.object_id end
inspect()
click to toggle source
# File lib/emfrp/syntax.rb, line 59 def inspect if @name || @link.has_key?(:name) "Link(#{@name || @link[:name][:desc]} : #{@link.class})" else "Link(#{@link.class})" end end
to_s()
click to toggle source
# File lib/emfrp/syntax.rb, line 67 def to_s inspect end