Class: SymMethod
- Inherits:
-
Object
- Object
- SymMethod
- Defined in:
- lib/pipe_chain.rb
Overview
メソッド名と引数を管理するため
Instance Attribute Summary collapse
-
#block ⇒ Object
readonly
Returns the value of attribute block.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#params ⇒ Object
readonly
Returns the value of attribute params.
Instance Method Summary collapse
-
#initialize(name, params, &block) ⇒ SymMethod
constructor
A new instance of SymMethod.
Constructor Details
#initialize(name, params, &block) ⇒ SymMethod
15 16 17 |
# File 'lib/pipe_chain.rb', line 15 def initialize(name, params, &block) @name, @params, @block = name, params, block end |
Instance Attribute Details
#block ⇒ Object (readonly)
Returns the value of attribute block.
14 15 16 |
# File 'lib/pipe_chain.rb', line 14 def block @block end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
14 15 16 |
# File 'lib/pipe_chain.rb', line 14 def name @name end |
#params ⇒ Object (readonly)
Returns the value of attribute params.
14 15 16 |
# File 'lib/pipe_chain.rb', line 14 def params @params end |