Class: Semi::Variables::Integer
- Defined in:
- lib/semi/variables/integer.rb
Class Method Summary collapse
Instance Method Summary collapse
Methods inherited from Base
#!=, #!~, #&, #<=>, #==, #===, #=~, #^, #eql?, #equal?, #initialize, #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
#method_missing(m, *args, &block) ⇒ Object
19 20 21 |
# File 'lib/semi/variables/integer.rb', line 19 def method_missing(m, *args, &block) @value.to_i.send(m, *args, &block) end |
Class Method Details
Instance Method Details
#validate ⇒ Object
6 7 8 |
# File 'lib/semi/variables/integer.rb', line 6 def validate self.validate(@value) end |