Class: Lunar::RangeSets
- Inherits:
-
Array
- Object
- Array
- Lunar::RangeSets
- Defined in:
- lib/lunar/sets.rb
Instance Attribute Summary collapse
-
#field ⇒ Object
readonly
Returns the value of attribute field.
-
#prefix ⇒ Object
readonly
Returns the value of attribute prefix.
-
#range ⇒ Object
readonly
Returns the value of attribute range.
Instance Method Summary collapse
-
#initialize(prefix, range, field) ⇒ RangeSets
constructor
A new instance of RangeSets.
- #key ⇒ Object
- #write_and_retrieve_key ⇒ Object
Constructor Details
#initialize(prefix, range, field) ⇒ RangeSets
Returns a new instance of RangeSets.
41 42 43 44 45 46 47 |
# File 'lib/lunar/sets.rb', line 41 def initialize(prefix, range, field) @prefix = prefix @field = field @range = range super [write_and_retrieve_key] end |
Instance Attribute Details
#field ⇒ Object (readonly)
Returns the value of attribute field.
39 40 41 |
# File 'lib/lunar/sets.rb', line 39 def field @field end |
#prefix ⇒ Object (readonly)
Returns the value of attribute prefix.
39 40 41 |
# File 'lib/lunar/sets.rb', line 39 def prefix @prefix end |
#range ⇒ Object (readonly)
Returns the value of attribute range.
39 40 41 |
# File 'lib/lunar/sets.rb', line 39 def range @range end |