Module: NavigatorRails::Builder
- Defined in:
- lib/navigator_rails/builder.rb
Instance Method Summary collapse
- #constraint(param) ⇒ Object
- #content(param) ⇒ Object
- #decorator(param) ⇒ Object
- #navigator_builder ⇒ Object
- #order(param) ⇒ Object
- #path(param) ⇒ Object
- #type(param) ⇒ Object
Instance Method Details
#constraint(param) ⇒ Object
7 |
# File 'lib/navigator_rails/builder.rb', line 7 def constraint param; @i.send("#{__method__}=",param); end |
#content(param) ⇒ Object
6 |
# File 'lib/navigator_rails/builder.rb', line 6 def content param; @i.send("#{__method__}=",param.call); end |
#decorator(param) ⇒ Object
8 |
# File 'lib/navigator_rails/builder.rb', line 8 def decorator param; @i.send("#{__method__}=",param); end |
#navigator_builder ⇒ Object
3 4 5 6 7 8 9 10 11 12 13 |
# File 'lib/navigator_rails/builder.rb', line 3 def navigator_builder def path param; @i.send("#{__method__}=",param); end def order param; @i.send("#{__method__}=",param); end def content param; @i.send("#{__method__}=",param.call); end def constraint param; @i.send("#{__method__}=",param); end def decorator param; @i.send("#{__method__}=",param); end def type param; @i.send("#{__method__}=",param); end @i = Item.new yield @i.save end |
#order(param) ⇒ Object
5 |
# File 'lib/navigator_rails/builder.rb', line 5 def order param; @i.send("#{__method__}=",param); end |
#path(param) ⇒ Object
4 |
# File 'lib/navigator_rails/builder.rb', line 4 def path param; @i.send("#{__method__}=",param); end |
#type(param) ⇒ Object
9 |
# File 'lib/navigator_rails/builder.rb', line 9 def type param; @i.send("#{__method__}=",param); end |