Class: Semi::Variables::String
- Defined in:
- lib/semi/variables/string.rb
Class Method Summary collapse
Instance Method Summary collapse
Methods inherited from Base
#initialize, #set, #to_s, #value
Constructor Details
This class inherits a constructor from Semi::Variables::Base
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 |