Module: Halogen::Properties::ClassMethods

Defined in:
lib/halogen/properties.rb

Overview

:nodoc:

Instance Method Summary collapse

Instance Method Details

#property(name, options = {}, &procedure) ⇒ Halogen::Properties::Definition

Parameters:

  • name (Symbol, String)
  • options (nil, Hash) (defaults to: {})

Returns:


17
18
19
# File 'lib/halogen/properties.rb', line 17

def property(name, options = {}, &procedure)
  definitions.add(Definition.new(name, options, procedure))
end