Class: RiceBubble::Attributes::Literal
- Defined in:
- lib/rice_bubble/attributes/literal.rb
Instance Attribute Summary collapse
-
#literal ⇒ Object
readonly
Returns the value of attribute literal.
Instance Method Summary collapse
- #description ⇒ Object
-
#initialize(literal) ⇒ Literal
constructor
A new instance of Literal.
- #valid?(value) ⇒ Boolean
Methods inherited from Base
#call, #fetch, #optional, #valid_types
Constructor Details
#initialize(literal) ⇒ Literal
Returns a new instance of Literal.
6 7 8 9 |
# File 'lib/rice_bubble/attributes/literal.rb', line 6 def initialize(literal, &) super(&) @literal = literal end |
Instance Attribute Details
#literal ⇒ Object (readonly)
Returns the value of attribute literal.
4 5 6 |
# File 'lib/rice_bubble/attributes/literal.rb', line 4 def literal @literal end |