Class: Semi::Variables::String
- Defined in:
- lib/semi/variables/string.rb
Class Method Summary collapse
Instance Method Summary collapse
Methods inherited from Base
#!=, #!~, #&, #<=>, #==, #===, #=~, #^, #eql?, #equal?, #initialize, #method_missing, #set, #to_s, #value, #|
Constructor Details
This class inherits a constructor from Semi::Variables::Base
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class 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 ['String', 'Semi::Variables::String'].include? value.class.to_s 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 |