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.



157
158
159
160
# File 'lib/dsl/ferrari.rb', line 157

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

Instance Attribute Details

#methodObject

Returns the value of attribute method.



156
157
158
# File 'lib/dsl/ferrari.rb', line 156

def method
  @method
end

#tagObject

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_sObject



178
179
180
# File 'lib/dsl/ferrari.rb', line 178

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