Class: DrawCloud::SimpleRef
- Inherits:
-
Object
- Object
- DrawCloud::SimpleRef
- Defined in:
- lib/draw_cloud/simple_ref.rb
Instance Attribute Summary collapse
-
#literal ⇒ Object
Returns the value of attribute literal.
Instance Method Summary collapse
-
#initialize(literal) ⇒ SimpleRef
constructor
A new instance of SimpleRef.
- #ref ⇒ Object
Constructor Details
#initialize(literal) ⇒ SimpleRef
Returns a new instance of SimpleRef.
22 23 24 |
# File 'lib/draw_cloud/simple_ref.rb', line 22 def initialize(literal) @literal = literal end |
Instance Attribute Details
#literal ⇒ Object
Returns the value of attribute literal.
21 22 23 |
# File 'lib/draw_cloud/simple_ref.rb', line 21 def literal @literal end |
Instance Method Details
#ref ⇒ Object
26 27 28 |
# File 'lib/draw_cloud/simple_ref.rb', line 26 def ref {"Ref" => literal} end |