Sha256: 29cfe42b6d24f56bad3a7150192492a71ef60bdcf84064c9399bd4ca63ca2b89

Contents?: true

Size: 289 Bytes

Versions: 11

Compression:

Stored size: 289 Bytes

Contents

class Navy::Admiral::Speak < Navy::Speak

  def before_exec(*args, &block)
    set_hook(:before_exec, block_given? ? block : args[0], 1)
  end

  def captain(label, *args, &block)
    orders.set[:captains] ||= {}
    orders.set[:captains][label] = block_given? ? block : args[0]
  end

end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
navy-1.1.2 lib/navy/admiral/speak.rb
navy-1.1.1 lib/navy/admiral/speak.rb
navy-1.1.0 lib/navy/admiral/speak.rb
navy-1.0.7 lib/navy/admiral/speak.rb
navy-1.0.6 lib/navy/admiral/speak.rb
navy-1.0.5 lib/navy/admiral/speak.rb
navy-1.0.4 lib/navy/admiral/speak.rb
navy-1.0.3 lib/navy/admiral/speak.rb
navy-1.0.2 lib/navy/admiral/speak.rb
navy-1.0.1 lib/navy/admiral/speak.rb
navy-1.0.0 lib/navy/admiral/speak.rb