Class: BlueprintComponents::Parameter

Inherits:
Component
  • Object
show all
Includes:
BlueprintComponents
Defined in:
lib/blueprint/components.rb

Constant Summary

Constants included from BlueprintComponents

BLUEPRINT_TRANSLATIONS

Instance Method Summary collapse

Methods included from BlueprintComponents

add_child, #aggregate, #definition, #dependency, #no_op, #parameter

Methods inherited from Component

#attributes, creates, #initialize, #remove_attribute

Constructor Details

This class inherits a constructor from BlueprintComponents::Component

Instance Method Details

#value(*args) ⇒ Object



60
61
62
63
64
65
66
# File 'lib/blueprint/components.rb', line 60

def value(*args)
  val = Value.new(*args)
  unless val.definition[:label]
    val.definition[:label] = val.definition[:content]
  end
  add_child val
end