Class: Srgs::Example

Inherits:
Object
  • Object
show all
Defined in:
lib/srgs/elements/example.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(text) ⇒ Example

Returns a new instance of Example.



6
7
8
# File 'lib/srgs/elements/example.rb', line 6

def initialize(text)
  @text = text
end

Instance Attribute Details

#textObject

Returns the value of attribute text.



4
5
6
# File 'lib/srgs/elements/example.rb', line 4

def text
  @text
end