class Rekkyo::Type::Member
Attributes
key[R]
value[R]
Public Class Methods
new(key, value)
click to toggle source
# File lib/rekkyo/type/member.rb, line 8 def initialize(key, value) @key = key @value = value end
Public Instance Methods
==(other)
click to toggle source
# File lib/rekkyo/type/member.rb, line 13 def ==(other) self.class == other.class && self.key == other.key && self.value == other.value end
as_json(options = nil)
click to toggle source
# File lib/rekkyo/type/member.rb, line 41 def as_json(options = nil) self.to_s.as_json(options) end
inspect()
click to toggle source
# File lib/rekkyo/type/member.rb, line 32 def inspect "#{self.class.name || ''}::#{key}(#{value.inspect})" end
match?(other)
click to toggle source
# File lib/rekkyo/type/member.rb, line 19 def match?(other) case other when self.class self == other when String, Symbol self.value.to_s == other.to_s else self.value == other end end
Also aliased as: ===
to_s()
click to toggle source
# File lib/rekkyo/type/member.rb, line 36 def to_s self.value.to_s end