Class: Betterdocs::Dsl::Controller::Action::Param
- Inherits:
-
Object
- Object
- Betterdocs::Dsl::Controller::Action::Param
- Extended by:
- Tins::DSLAccessor
- Includes:
- Betterdocs::Dsl::Common
- Defined in:
- lib/betterdocs/dsl/controller/action/param.rb
Instance Method Summary collapse
-
#initialize(param_name, &block) ⇒ Param
constructor
A new instance of Param.
- #to_s ⇒ Object
Methods included from Betterdocs::Dsl::Common
Constructor Details
#initialize(param_name, &block) ⇒ Param
Returns a new instance of Param.
5 6 7 8 |
# File 'lib/betterdocs/dsl/controller/action/param.rb', line 5 def initialize(param_name, &block) name param_name block and instance_eval(&block) end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Betterdocs::Dsl::Common
Instance Method Details
#to_s ⇒ Object
23 24 25 |
# File 'lib/betterdocs/dsl/controller/action/param.rb', line 23 def to_s value.to_s end |