Class: Glib::JsonUi::ViewBuilder::Icon
- Inherits:
-
View
show all
- Defined in:
- app/helpers/glib/json_ui/view_builder.rb
Instance Attribute Summary
#json, #page
Instance Method Summary
collapse
Methods inherited from View
component_name
#initialize, #props
Instance Method Details
#created ⇒ Object
201
202
203
204
205
206
207
208
|
# File 'app/helpers/glib/json_ui/view_builder.rb', line 201
def created
if @name
json.material do
json.name @name
json.size @size if @size
end
end
end
|
#name(value) ⇒ Object
192
193
194
|
# File 'app/helpers/glib/json_ui/view_builder.rb', line 192
def name(value)
@name = value
end
|
#size(value) ⇒ Object
196
197
198
|
# File 'app/helpers/glib/json_ui/view_builder.rb', line 196
def size(value)
@size = value
end
|