Class: MSFLVisitors::Nodes::Value
- Inherits:
-
Base
- Object
- Base
- MSFLVisitors::Nodes::Value
show all
- Defined in:
- lib/msfl_visitors/nodes/value.rb
Instance Attribute Summary collapse
Instance Method Summary
collapse
Constructor Details
#initialize(expr) ⇒ Value
12
13
14
|
# File 'lib/msfl_visitors/nodes/value.rb', line 12
def initialize(expr)
self.value = expr
end
|
Instance Attribute Details
#value ⇒ Object
Returns the value of attribute value.
6
7
8
|
# File 'lib/msfl_visitors/nodes/value.rb', line 6
def value
@value
end
|
Instance Method Details
#==(other) ⇒ Object
16
17
18
19
|
# File 'lib/msfl_visitors/nodes/value.rb', line 16
def ==(other)
self.class == other.class &&
value == other.value
end
|
#accept(visitor) ⇒ Object
8
9
10
|
# File 'lib/msfl_visitors/nodes/value.rb', line 8
def accept(visitor)
visitor.visit self
end
|