Class: Ryb::Target

Inherits:
Object
  • Object
show all
Includes:
Properties::Defines, Properties::Flags, Properties::Named, Properties::Suffix
Defined in:
lib/ryb/target.rb

Instance Method Summary collapse

Methods included from Properties::Flags

included

Methods included from Properties::Defines

included

Methods included from Properties::Suffix

included

Methods included from Properties::Named

included

Constructor Details

#initialize(name, opts = {}) {|_self| ... } ⇒ Target

Returns a new instance of Target.

Yields:

  • (_self)

Yield Parameters:

  • _self (Ryb::Target)

    the object that the method was called on



11
12
13
14
# File 'lib/ryb/target.rb', line 11

def initialize(name, opts={})
  @name = Name.new(name, opts[:pretty])
  yield self if block_given?
end