Class: Clases::Mix
- Inherits:
-
Object
- Object
- Clases::Mix
- Defined in:
- lib/imposition/clases.rb
Instance Attribute Summary collapse
-
#n ⇒ Object
readonly
Returns the value of attribute n.
-
#t ⇒ Object
readonly
Returns the value of attribute t.
-
#x ⇒ Object
readonly
Returns the value of attribute x.
-
#y ⇒ Object
readonly
Returns the value of attribute y.
Instance Method Summary collapse
-
#initialize(n, x, y, t) ⇒ Mix
constructor
A new instance of Mix.
- #to_s ⇒ Object
Constructor Details
#initialize(n, x, y, t) ⇒ Mix
Returns a new instance of Mix.
71 72 73 74 75 76 |
# File 'lib/imposition/clases.rb', line 71 def initialize(n,x,y,t) @n=n @x=x @y=y @t=t end |
Instance Attribute Details
#n ⇒ Object (readonly)
Returns the value of attribute n.
77 78 79 |
# File 'lib/imposition/clases.rb', line 77 def n @n end |
#t ⇒ Object (readonly)
Returns the value of attribute t.
77 78 79 |
# File 'lib/imposition/clases.rb', line 77 def t @t end |
#x ⇒ Object (readonly)
Returns the value of attribute x.
77 78 79 |
# File 'lib/imposition/clases.rb', line 77 def x @x end |
#y ⇒ Object (readonly)
Returns the value of attribute y.
77 78 79 |
# File 'lib/imposition/clases.rb', line 77 def y @y end |
Instance Method Details
#to_s ⇒ Object
78 79 80 |
# File 'lib/imposition/clases.rb', line 78 def to_s "n=#{@n}, x=#{@x}, y=#{@y}, t=#{@t}" end |