Class: Semi::Variables::String
- Inherits:
-
Base
- Object
- Base
- Semi::Variables::String
show all
- Defined in:
- lib/semi/variables/string.rb
Class Method Summary
collapse
Instance Method Summary
collapse
Methods inherited from Base
#initialize, #set, #to_s
Class Method Details
.validate(value) ⇒ Object
10
11
12
13
14
15
|
# File 'lib/semi/variables/string.rb', line 10
def self.validate(value)
if value.class.to_s == 'String'
return true
end
false
end
|
Instance Method Details
#validate ⇒ Object
6
7
8
|
# File 'lib/semi/variables/string.rb', line 6
def validate
self.validate(@value)
end
|