Class: Object
- Inherits:
- BasicObject
- Defined in:
- lib/flex_core.rb
Instance Method Summary collapse
Instance Method Details
#deep_copy ⇒ Object
180 181 182 |
# File 'lib/flex_core.rb', line 180 def deep_copy Marshal.load(Marshal.dump(self)) end |
#is_in?(array) ⇒ Boolean
184 185 186 |
# File 'lib/flex_core.rb', line 184 def is_in? (array) array.include?(self) end |
#is_not_in?(array) ⇒ Boolean
192 193 194 |
# File 'lib/flex_core.rb', line 192 def is_not_in? (array) array.exclude?(self) end |
#not_in?(array) ⇒ Boolean
188 189 190 |
# File 'lib/flex_core.rb', line 188 def not_in? (array) array.exclude?(self) end |