Class: Semi::Variables::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/semi/variables/base.rb

Direct Known Subclasses

Boolean, Integer, Path, String, Url

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_sObject



14
15
16
# File 'lib/semi/variables/base.rb', line 14

def to_s
  @value
end