class YDIM::Html::View::SpanValue

Public Instance Methods

init() click to toggle source
Calls superclass method
# File lib/ydim/html/view/invoice.rb, line 17
def init
        super
        @attributes.store('id', @name)
end
to_html(context) click to toggle source
# File lib/ydim/html/view/invoice.rb, line 21
def to_html(context)
        context.span(@attributes) { number_format escape(@value) }
end