Class: ActiveBlocks::Decorator::Attributes::Definition

Inherits:
Object
  • Object
show all
Defined in:
lib/active_blocks/decorator/attributes/definition.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name, options = {}) ⇒ Definition

Returns a new instance of Definition.



9
10
11
12
# File 'lib/active_blocks/decorator/attributes/definition.rb', line 9

def initialize(name, options={})
  @name    = name
  @options = options
end

Instance Attribute Details

#nameObject (readonly)

Returns the value of attribute name.



7
8
9
# File 'lib/active_blocks/decorator/attributes/definition.rb', line 7

def name
  @name
end

#optionsObject (readonly)

Returns the value of attribute options.



7
8
9
# File 'lib/active_blocks/decorator/attributes/definition.rb', line 7

def options
  @options
end