Class: Culpa::BlockToArray

Inherits:
Object
  • Object
show all
Defined in:
lib/culpa/routes_builder.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeBlockToArray

Returns a new instance of BlockToArray.



62
63
64
# File 'lib/culpa/routes_builder.rb', line 62

def initialize
  @culpa_bta_result = []
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(sym) ⇒ Object



66
67
68
# File 'lib/culpa/routes_builder.rb', line 66

def method_missing(sym)
  @culpa_bta_result << sym.to_s
end

Instance Attribute Details

#culpa_bta_resultObject (readonly)

Returns the value of attribute culpa_bta_result.



61
62
63
# File 'lib/culpa/routes_builder.rb', line 61

def culpa_bta_result
  @culpa_bta_result
end