Module: PikoTools::Component::ClassMethods
- Defined in:
- lib/piko_tools/component.rb
Instance Method Summary collapse
Instance Method Details
#attr_struct(*components) ⇒ Object
22 23 24 25 26 27 28 29 30 |
# File 'lib/piko_tools/component.rb', line 22 def attr_struct(*components) components.each do |name| next if method_defined?(name) define_method name do @config[name.to_sym] end private name end end |