class Flipper::Type

Internal: Root class for all flipper types. You should never need to use this.

Attributes

value[R]

Public Class Methods

wrap(value_or_instance) click to toggle source
# File lib/flipper/type.rb, line 4
def self.wrap(value_or_instance)
  return value_or_instance if value_or_instance.is_a?(self)
  new(value_or_instance)
end

Public Instance Methods

==(other)
Alias for: eql?
eql?(other) click to toggle source
# File lib/flipper/type.rb, line 11
def eql?(other)
  self.class.eql?(other.class) && value == other.value
end
Also aliased as: ==