Class: GreenPepper::DoWithLine
- Inherits:
-
Object
- Object
- GreenPepper::DoWithLine
- Defined in:
- lib/greenpepper/example/dowithexample.rb
Direct Known Subclasses
DoWithLineAccept, DoWithLineCheck, DoWithLineNoKeyword, DoWithLineReject
Instance Attribute Summary collapse
-
#function ⇒ Object
readonly
Returns the value of attribute function.
-
#parameters ⇒ Object
readonly
Returns the value of attribute parameters.
-
#result_column ⇒ Object
readonly
Returns the value of attribute result_column.
Instance Method Summary collapse
- #accept? ⇒ Boolean
- #check? ⇒ Boolean
- #function? ⇒ Boolean
-
#initialize(func, column, params) ⇒ DoWithLine
constructor
A new instance of DoWithLine.
- #reject? ⇒ Boolean
Constructor Details
#initialize(func, column, params) ⇒ DoWithLine
Returns a new instance of DoWithLine.
85 86 87 88 89 |
# File 'lib/greenpepper/example/dowithexample.rb', line 85 def initialize(func, column, params) @parameters = params @function = NameResolver.format_column_name func @result_column = column end |
Instance Attribute Details
#function ⇒ Object (readonly)
Returns the value of attribute function.
83 84 85 |
# File 'lib/greenpepper/example/dowithexample.rb', line 83 def function @function end |
#parameters ⇒ Object (readonly)
Returns the value of attribute parameters.
83 84 85 |
# File 'lib/greenpepper/example/dowithexample.rb', line 83 def parameters @parameters end |
#result_column ⇒ Object (readonly)
Returns the value of attribute result_column.
83 84 85 |
# File 'lib/greenpepper/example/dowithexample.rb', line 83 def result_column @result_column end |
Instance Method Details
#accept? ⇒ Boolean
99 100 101 |
# File 'lib/greenpepper/example/dowithexample.rb', line 99 def accept? false end |
#check? ⇒ Boolean
95 96 97 |
# File 'lib/greenpepper/example/dowithexample.rb', line 95 def check? false end |
#function? ⇒ Boolean
91 92 93 |
# File 'lib/greenpepper/example/dowithexample.rb', line 91 def function? false end |
#reject? ⇒ Boolean
103 104 105 |
# File 'lib/greenpepper/example/dowithexample.rb', line 103 def reject? false end |