Class: YDIM::Html::View::SpanValue

Inherits:
HtmlGrid::Value
  • Object
show all
Defined in:
lib/ydim/html/view/invoice.rb

Instance Method Summary collapse

Instance Method Details

#initObject



16
17
18
19
# File 'lib/ydim/html/view/invoice.rb', line 16

def init
	super
	@attributes.store('id', @name)
end

#to_html(context) ⇒ Object



20
21
22
# File 'lib/ydim/html/view/invoice.rb', line 20

def to_html(context)
	context.span(@attributes) { number_format escape(@value) }
end