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.
69 70 71 72 73 74 |
# File 'lib/imposition/clases.rb', line 69 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.
75 76 77 |
# File 'lib/imposition/clases.rb', line 75 def n @n end |
#t ⇒ Object (readonly)
Returns the value of attribute t.
75 76 77 |
# File 'lib/imposition/clases.rb', line 75 def t @t end |
#x ⇒ Object (readonly)
Returns the value of attribute x.
75 76 77 |
# File 'lib/imposition/clases.rb', line 75 def x @x end |
#y ⇒ Object (readonly)
Returns the value of attribute y.
75 76 77 |
# File 'lib/imposition/clases.rb', line 75 def y @y end |
Instance Method Details
#to_s ⇒ Object
76 77 78 |
# File 'lib/imposition/clases.rb', line 76 def to_s "n=#{@n}, x=#{@x}, y=#{@y}, t=#{@t}" end |