Class: Mo2tex::Pic::Base
- Inherits:
-
Object
- Object
- Mo2tex::Pic::Base
- Defined in:
- lib/mo2tex/pic.rb
Instance Attribute Summary collapse
-
#loc ⇒ Object
readonly
Returns the value of attribute loc.
-
#number ⇒ Object
readonly
Returns the value of attribute number.
Instance Method Summary collapse
-
#initialize(n, lt) ⇒ Base
constructor
A new instance of Base.
- #location_tag ⇒ Object
Constructor Details
#initialize(n, lt) ⇒ Base
Returns a new instance of Base.
83 84 85 86 |
# File 'lib/mo2tex/pic.rb', line 83 def initialize(n, lt) @number = n @loc = lt end |
Instance Attribute Details
#loc ⇒ Object (readonly)
Returns the value of attribute loc.
81 82 83 |
# File 'lib/mo2tex/pic.rb', line 81 def loc @loc end |
#number ⇒ Object (readonly)
Returns the value of attribute number.
81 82 83 |
# File 'lib/mo2tex/pic.rb', line 81 def number @number end |
Instance Method Details
#location_tag ⇒ Object
88 89 90 |
# File 'lib/mo2tex/pic.rb', line 88 def location_tag return self.loc end |