Module: FastRuby::BuilderModule
- Defined in:
- lib/fastruby/builder.rb
Instance Method Summary collapse
- #build(signature, method_name, noreturn = false) ⇒ Object
- #fastruby_method(mname_) ⇒ Object
- #method_added(method_name) ⇒ Object
- #method_hash(method_name) ⇒ Object
- #register_method_value(method_name, key, value) ⇒ Object
Instance Method Details
#build(signature, method_name, noreturn = false) ⇒ Object
237 238 239 |
# File 'lib/fastruby/builder.rb', line 237 def build(signature, method_name, noreturn = false) fastruby_method(method_name.to_sym).build(signature, noreturn) end |
#fastruby_method(mname_) ⇒ Object
256 257 258 259 260 261 |
# File 'lib/fastruby/builder.rb', line 256 def fastruby_method(mname_) mname = mname_.to_sym @fastruby_method = Hash.new unless @fastruby_method @fastruby_method[mname] = FastRuby::Method.new(mname,self) unless @fastruby_method[mname] @fastruby_method[mname] end |
#method_added(method_name) ⇒ Object
252 253 254 |
# File 'lib/fastruby/builder.rb', line 252 def method_added(method_name) FastRuby.unset_tree(self,method_name) end |
#method_hash(method_name) ⇒ Object
247 248 249 250 |
# File 'lib/fastruby/builder.rb', line 247 def method_hash(method_name) @method_hash = Hash.new unless @method_hash @method_hash[method_name] end |
#register_method_value(method_name, key, value) ⇒ Object
241 242 243 244 245 |
# File 'lib/fastruby/builder.rb', line 241 def register_method_value(method_name,key,value) @method_hash = Hash.new unless @method_hash @method_hash[method_name] = Hash.new unless @method_hash[method_name] @method_hash[method_name][key] = value end |