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



221
222
223
224
# File 'lib/dsl/ferrari.rb', line 221

def initialize(tag,method=nil)
  @tag = tag
  @method = method
end

Instance Attribute Details

#methodObject

Returns the value of attribute method.



220
221
222
# File 'lib/dsl/ferrari.rb', line 220

def method
  @method
end

#tagObject

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_sObject



242
243
244
# File 'lib/dsl/ferrari.rb', line 242

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