Class: Scripref::Passage

Inherits:
Struct
  • Object
show all
Defined in:
lib/scripref.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#a1Object

Returns the value of attribute a1

Returns:

  • (Object)

    the current value of a1



12
13
14
# File 'lib/scripref.rb', line 12

def a1
  @a1
end

#a2Object

Returns the value of attribute a2

Returns:

  • (Object)

    the current value of a2



12
13
14
# File 'lib/scripref.rb', line 12

def a2
  @a2
end

#b1Object

Returns the value of attribute b1

Returns:

  • (Object)

    the current value of b1



12
13
14
# File 'lib/scripref.rb', line 12

def b1
  @b1
end

#b2Object

Returns the value of attribute b2

Returns:

  • (Object)

    the current value of b2



12
13
14
# File 'lib/scripref.rb', line 12

def b2
  @b2
end

#c1Object

Returns the value of attribute c1

Returns:

  • (Object)

    the current value of c1



12
13
14
# File 'lib/scripref.rb', line 12

def c1
  @c1
end

#c2Object

Returns the value of attribute c2

Returns:

  • (Object)

    the current value of c2



12
13
14
# File 'lib/scripref.rb', line 12

def c2
  @c2
end

#textObject Also known as: to_s

Returns the value of attribute text

Returns:

  • (Object)

    the current value of text



12
13
14
# File 'lib/scripref.rb', line 12

def text
  @text
end

#v1Object

Returns the value of attribute v1

Returns:

  • (Object)

    the current value of v1



12
13
14
# File 'lib/scripref.rb', line 12

def v1
  @v1
end

#v2Object

Returns the value of attribute v2

Returns:

  • (Object)

    the current value of v2



12
13
14
# File 'lib/scripref.rb', line 12

def v2
  @v2
end