Class: Mo2tex::Pic::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/mo2tex/pic.rb

Direct Known Subclasses

Container, Page, Slot

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#locObject (readonly)

Returns the value of attribute loc.



81
82
83
# File 'lib/mo2tex/pic.rb', line 81

def loc
  @loc
end

#numberObject (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_tagObject



88
89
90
# File 'lib/mo2tex/pic.rb', line 88

def location_tag
  return self.loc
end