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
178
179
180
181
182
183
184
185
|
# File 'app/helpers/glib/json_ui/view_builder.rb', line 178
def created
if @name
json.material do
json.name @name
json.size @size if @size
end
end
end
|
#name(value) ⇒ Object
169
170
171
|
# File 'app/helpers/glib/json_ui/view_builder.rb', line 169
def name(value)
@name = value
end
|
#size(value) ⇒ Object
173
174
175
|
# File 'app/helpers/glib/json_ui/view_builder.rb', line 173
def size(value)
@size = value
end
|