Class: Conjur::Policy::Types::InheritableAttribute::Clone
- Defined in:
- lib/conjur/policy/types/base.rb
Class Method Summary collapse
-
.call(value, uncloneable = uncloneable()) ⇒ Object
The second argument allows injecting more types.
- .uncloneable ⇒ Object
Class Method Details
.call(value, uncloneable = uncloneable()) ⇒ Object
The second argument allows injecting more types.
33 34 35 36 |
# File 'lib/conjur/policy/types/base.rb', line 33 def self.call(value, uncloneable=uncloneable()) uncloneable.each { |klass| return value if value.kind_of?(klass) } value.clone end |
.uncloneable ⇒ Object
38 39 40 |
# File 'lib/conjur/policy/types/base.rb', line 38 def self.uncloneable [Symbol, TrueClass, FalseClass, NilClass] end |