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
221 222 223 224 |
# File 'lib/dsl/ferrari.rb', line 221 def initialize(tag,method=nil) @tag = tag @method = method end |
Instance Attribute Details
#method ⇒ Object
Returns the value of attribute method.
220 221 222 |
# File 'lib/dsl/ferrari.rb', line 220 def method @method end |
#tag ⇒ Object
Returns the value of attribute tag.
220 221 222 |
# File 'lib/dsl/ferrari.rb', line 220 def tag @tag end |
Instance Method Details
#*(arg) ⇒ Object
238 239 240 |
# File 'lib/dsl/ferrari.rb', line 238 def *(arg) raise 'Cannot use operators in short-hand mode!' end |
#+(arg) ⇒ Object
226 227 228 |
# File 'lib/dsl/ferrari.rb', line 226 def +(arg) raise 'Cannot use operators in short-hand mode!' end |
#-(arg) ⇒ Object
230 231 232 |
# File 'lib/dsl/ferrari.rb', line 230 def -(arg) raise 'Cannot use operators in short-hand mode!' end |
#/(arg) ⇒ Object
234 235 236 |
# File 'lib/dsl/ferrari.rb', line 234 def /(arg) raise 'Cannot use operators in short-hand mode!' end |
#to_s ⇒ Object
242 243 244 |
# File 'lib/dsl/ferrari.rb', line 242 def to_s "BindingBuilder @tag=#{@tag}, @method=#{@method}" end |