Class: Ruleby::Ferrari::BindingBuilder

Inherits:
Object
  • Object
show all
Defined in:
lib/dsl/ferrari.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#methodObject

Returns the value of attribute method.



335
336
337
# File 'lib/dsl/ferrari.rb', line 335

def method
  @method
end

#tagObject

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_sObject



357
358
359
# File 'lib/dsl/ferrari.rb', line 357

def to_s
  "BindingBuilder @tag=#{@tag}, @method=#{@method}"
end