Class: Boxy::Dsl

Inherits:
Object
  • Object
show all
Defined in:
lib/boxy/dsl.rb

Class Method Summary collapse

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(sym, *args) ⇒ Object (private)



23
24
25
# File 'lib/boxy/dsl.rb', line 23

def method_missing(sym, *args)
  add_command(sym, args.shift, args.shift.to_h)
end

Class Method Details

.interpret(url) ⇒ Object



7
8
9
# File 'lib/boxy/dsl.rb', line 7

def self.interpret(url)
  Dsl.new(url).send(:interpret)
end