Class: Betterdocs::Dsl::Controller::Action::Param

Inherits:
Object
  • Object
show all
Extended by:
Tins::DSLAccessor
Includes:
Betterdocs::Dsl::Common
Defined in:
lib/betterdocs/dsl/controller/action/param.rb

Instance Method Summary collapse

Methods included from Betterdocs::Dsl::Common

#set_context

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_sObject



23
24
25
# File 'lib/betterdocs/dsl/controller/action/param.rb', line 23

def to_s
  value.to_s
end