Class: Hermeneutics::IdList
- Inherits:
-
Object
- Object
- Hermeneutics::IdList
- Defined in:
- lib/hermeneutics/types.rb
Instance Attribute Summary collapse
-
#value ⇒ Object
Returns the value of attribute value.
Class Method Summary collapse
Instance Method Summary collapse
- #encode ⇒ Object
-
#initialize(*ids) ⇒ IdList
constructor
A new instance of IdList.
- #to_s ⇒ Object (also: #quote)
Constructor Details
#initialize(*ids) ⇒ IdList
Returns a new instance of IdList.
117 118 119 120 |
# File 'lib/hermeneutics/types.rb', line 117 def initialize *ids ids.flatten! self.value = ids end |
Instance Attribute Details
#value ⇒ Object
Returns the value of attribute value.
116 117 118 |
# File 'lib/hermeneutics/types.rb', line 116 def value @value end |
Class Method Details
Instance Method Details
#encode ⇒ Object
133 134 135 |
# File 'lib/hermeneutics/types.rb', line 133 def encode map { |i| i.encode }.join " " end |
#to_s ⇒ Object Also known as: quote
129 130 131 |
# File 'lib/hermeneutics/types.rb', line 129 def to_s map { |i| i.quote }.join " " end |