Class: Glib::JsonUi::ViewBuilder::Icon

Inherits:
View show all
Defined in:
app/helpers/glib/json_ui/view_builder.rb

Instance Attribute Summary

Attributes inherited from JsonUiElement

#json, #page

Instance Method Summary collapse

Methods inherited from View

component_name

Methods inherited from JsonUiElement

#initialize, #props

Constructor Details

This class inherits a constructor from Glib::JsonUi::JsonUiElement

Instance Method Details

#createdObject

Override



183
184
185
186
187
188
189
190
# File 'app/helpers/glib/json_ui/view_builder.rb', line 183

def created
  if @name
    json.material do
      json.name @name
      json.size @size if @size
    end
  end
end

#name(value) ⇒ Object



174
175
176
# File 'app/helpers/glib/json_ui/view_builder.rb', line 174

def name(value)
  @name = value
end

#size(value) ⇒ Object



178
179
180
# File 'app/helpers/glib/json_ui/view_builder.rb', line 178

def size(value)
  @size = value
end