Class: Scripref::Passage
- Inherits:
-
Struct
- Object
- Struct
- Scripref::Passage
- Defined in:
- lib/scripref.rb
Instance Attribute Summary collapse
-
#a1 ⇒ Object
Returns the value of attribute a1.
-
#a2 ⇒ Object
Returns the value of attribute a2.
-
#b1 ⇒ Object
Returns the value of attribute b1.
-
#b2 ⇒ Object
Returns the value of attribute b2.
-
#c1 ⇒ Object
Returns the value of attribute c1.
-
#c2 ⇒ Object
Returns the value of attribute c2.
-
#text ⇒ Object
(also: #to_s)
Returns the value of attribute text.
-
#v1 ⇒ Object
Returns the value of attribute v1.
-
#v2 ⇒ Object
Returns the value of attribute v2.
Instance Method Summary collapse
-
#initialize(text, b1, c1, v1, b2, c2, v2, opts = {}) ⇒ Passage
constructor
A new instance of Passage.
Constructor Details
#initialize(text, b1, c1, v1, b2, c2, v2, opts = {}) ⇒ Passage
Returns a new instance of Passage.
14 15 16 |
# File 'lib/scripref.rb', line 14 def initialize text, b1, c1, v1, b2, c2, v2, opts={} super text, b1, c1, v1, b2, c2, v2, opts[:a1], opts[:a2] end |
Instance Attribute Details
#a1 ⇒ Object
Returns the value of attribute a1
12 13 14 |
# File 'lib/scripref.rb', line 12 def a1 @a1 end |
#a2 ⇒ Object
Returns the value of attribute a2
12 13 14 |
# File 'lib/scripref.rb', line 12 def a2 @a2 end |
#b1 ⇒ Object
Returns the value of attribute b1
12 13 14 |
# File 'lib/scripref.rb', line 12 def b1 @b1 end |
#b2 ⇒ Object
Returns the value of attribute b2
12 13 14 |
# File 'lib/scripref.rb', line 12 def b2 @b2 end |
#c1 ⇒ Object
Returns the value of attribute c1
12 13 14 |
# File 'lib/scripref.rb', line 12 def c1 @c1 end |
#c2 ⇒ Object
Returns the value of attribute c2
12 13 14 |
# File 'lib/scripref.rb', line 12 def c2 @c2 end |
#text ⇒ Object Also known as: to_s
Returns the value of attribute text
12 13 14 |
# File 'lib/scripref.rb', line 12 def text @text end |
#v1 ⇒ Object
Returns the value of attribute v1
12 13 14 |
# File 'lib/scripref.rb', line 12 def v1 @v1 end |
#v2 ⇒ Object
Returns the value of attribute v2
12 13 14 |
# File 'lib/scripref.rb', line 12 def v2 @v2 end |