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.
336 337 338 339 |
# File 'lib/dsl/ferrari.rb', line 336 def initialize(tag,method=nil) @tag = tag @method = method end |
Instance Attribute Details
#method ⇒ Object
Returns the value of attribute method.
335 336 337 |
# File 'lib/dsl/ferrari.rb', line 335 def method @method end |
#tag ⇒ Object
Returns the value of attribute tag.
335 336 337 |
# File 'lib/dsl/ferrari.rb', line 335 def tag @tag end |
Instance Method Details
#*(arg) ⇒ Object
353 354 355 |
# File 'lib/dsl/ferrari.rb', line 353 def *(arg) raise 'Cannot use operators in short-hand mode!' end |
#+(arg) ⇒ Object
341 342 343 |
# File 'lib/dsl/ferrari.rb', line 341 def +(arg) raise 'Cannot use operators in short-hand mode!' end |
#-(arg) ⇒ Object
345 346 347 |
# File 'lib/dsl/ferrari.rb', line 345 def -(arg) raise 'Cannot use operators in short-hand mode!' end |
#/(arg) ⇒ Object
349 350 351 |
# File 'lib/dsl/ferrari.rb', line 349 def /(arg) raise 'Cannot use operators in short-hand mode!' end |
#to_s ⇒ Object
357 358 359 |
# File 'lib/dsl/ferrari.rb', line 357 def to_s "BindingBuilder @tag=#{@tag}, @method=#{@method}" end |