Class: Object
- Inherits:
- BasicObject
- Defined in:
- lib/time_point.rb
Instance Method Summary collapse
Instance Method Details
#in?(*arg) ⇒ Boolean
40 41 42 43 |
# File 'lib/time_point.rb', line 40 def in?(*arg) arg = arg[0] if arg.length == 1 && arg[0].respond_to?(:include?) arg.include?(self) end |
#my_methods ⇒ Object
44 45 46 |
# File 'lib/time_point.rb', line 44 def my_methods methods.sort - Object.methods end |
#value_in?(*arg) ⇒ Boolean
36 37 38 39 |
# File 'lib/time_point.rb', line 36 def value_in?(*arg) arg = arg[0] if arg.length == 1 && arg[0].respond_to?(:include_value?) arg.include_value?(self) end |