Class: Val::Key
Defined Under Namespace
Classes: Instance
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Instance Method Summary collapse
- #===(value) ⇒ Object
- #[](it) ⇒ Object
-
#initialize(name, condition) ⇒ Key
constructor
A new instance of Key.
Constructor Details
#initialize(name, condition) ⇒ Key
Returns a new instance of Key.
173 174 175 |
# File 'lib/val.rb', line 173 def initialize name, condition @name, @type = name, condition.to_val end |