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



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

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

#to_html(context) ⇒ Object



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

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