Class: DrawCloud::SimpleRef

Inherits:
Object
  • Object
show all
Defined in:
lib/draw_cloud/simple_ref.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#literalObject

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

#refObject



26
27
28
# File 'lib/draw_cloud/simple_ref.rb', line 26

def ref
  {"Ref" => literal}
end