Class: Ruleby::Ferrari::BindingBuilder
- Inherits:
-
Object
- Object
- Ruleby::Ferrari::BindingBuilder
- Defined in:
- lib/dsl/ferrari.rb
Instance Attribute Summary collapse
-
#method ⇒ Object
Returns the value of attribute method.
-
#tag ⇒ Object
Returns the value of attribute tag.
Instance Method Summary collapse
- #*(arg) ⇒ Object
- #+(arg) ⇒ Object
- #-(arg) ⇒ Object
- #/(arg) ⇒ Object
-
#initialize(tag, method = nil) ⇒ BindingBuilder
constructor
A new instance of BindingBuilder.
- #to_s ⇒ Object
Constructor Details
#initialize(tag, method = nil) ⇒ BindingBuilder
Returns a new instance of BindingBuilder.
157 158 159 160 |
# File 'lib/dsl/ferrari.rb', line 157 def initialize(tag,method=nil) @tag = tag @method = method end |
Instance Attribute Details
#method ⇒ Object
Returns the value of attribute method.
156 157 158 |
# File 'lib/dsl/ferrari.rb', line 156 def method @method end |
#tag ⇒ Object
Returns the value of attribute tag.
156 157 158 |
# File 'lib/dsl/ferrari.rb', line 156 def tag @tag end |
Instance Method Details
#*(arg) ⇒ Object
174 175 176 |
# File 'lib/dsl/ferrari.rb', line 174 def *(arg) raise 'Cannot use operators in short-hand mode!' end |
#+(arg) ⇒ Object
162 163 164 |
# File 'lib/dsl/ferrari.rb', line 162 def +(arg) raise 'Cannot use operators in short-hand mode!' end |
#-(arg) ⇒ Object
166 167 168 |
# File 'lib/dsl/ferrari.rb', line 166 def -(arg) raise 'Cannot use operators in short-hand mode!' end |
#/(arg) ⇒ Object
170 171 172 |
# File 'lib/dsl/ferrari.rb', line 170 def /(arg) raise 'Cannot use operators in short-hand mode!' end |
#to_s ⇒ Object
178 179 180 |
# File 'lib/dsl/ferrari.rb', line 178 def to_s "BindingBuilder @tag=#{@tag}, @method=#{@method}" end |