Class: Semi::Variables::Base
- Inherits:
-
Object
- Object
- Semi::Variables::Base
show all
- Defined in:
- lib/semi/variables/base.rb
Instance Method Summary
collapse
Constructor Details
#initialize(val) ⇒ Base
Returns a new instance of Base.
6
7
8
|
# File 'lib/semi/variables/base.rb', line 6
def initialize(val)
set(val)
end
|
Instance Method Details
#set(val) ⇒ Object
10
11
12
|
# File 'lib/semi/variables/base.rb', line 10
def set(val)
@value = val
end
|
#to_s ⇒ Object
14
15
16
|
# File 'lib/semi/variables/base.rb', line 14
def to_s
@value
end
|