Class: Literal::Value
- Inherits:
-
Object
show all
- Defined in:
- lib/literal/value.rb
Instance Attribute Summary collapse
Instance Method Summary
collapse
Instance Attribute Details
#value ⇒ Object
Returns the value of attribute value.
4
5
6
|
# File 'lib/literal/value.rb', line 4
def value
@value
end
|
Instance Method Details
#===(other) ⇒ Object
10
11
12
|
# File 'lib/literal/value.rb', line 10
def ===(other)
self.class === other && @value == other.value
end
|
#inspect ⇒ Object
6
7
8
|
# File 'lib/literal/value.rb', line 6
def inspect
"#{self.class.name}(#{@value.inspect})"
end
|